home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / DTS QT Utilities.Aug-95 / Projects & Test Apps / Drag&Drop Shell / TestFunction.c < prev    next >
Encoding:
Text File  |  1995-04-30  |  1021 b   |  45 lines  |  [TEXT/MPCC]

  1. /*
  2.     File:        RecompressMovie.c
  3.  
  4.     Contains:    Functions for recompression of QuickTime movies.
  5.  
  6.     Written by:    DTS
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.        <1>         1/30/95    khs        first file
  13.        
  14. */
  15.  
  16.  
  17. // INCLUDES
  18. #include "Movies.h"
  19. #include "MoviesFormat.h"
  20.  
  21. #include "TestFunction.h"
  22. #include "DTSQTUtilities.h"
  23.     
  24.  
  25.  
  26. // ______________________________________________________________________
  27. // FUNCTIONS
  28.  
  29.  
  30. // ______________________________________________________________________
  31. pascal OSErr TestFunction(FSSpec* theMovieFile)
  32. {
  33.     OSErr     anErr = noErr;
  34.     short    aMovieRefNum;
  35.     Movie    aSourceMovie;
  36.     
  37.     anErr = OpenMovieFile(theMovieFile, &aMovieRefNum, 0); ReturnIfError(anErr);
  38.     anErr = NewMovieFromFile(&aSourceMovie, aMovieRefNum, NULL, NULL, newMovieActive, NULL);  ReturnIfError(anErr);
  39.     CloseMovieFile(aMovieRefNum);
  40.  
  41.     // @@@ PROCESS THE MOVIE HERE 
  42.     DebugStr("\pOK, we are inside the test function for processing of the movie");   // temp test
  43.  
  44.     return anErr;
  45. }